from selenium.webdriver.common.by import By

from demo.weworkSelenium.page.base_page import BasePage
from demo.weworkSelenium.page.matarial import Matarial


class ManageTool(BasePage):
    def add_memeber(self):
        pass

    def matarial(self):
        locator = (By.CSS_SELECTOR, 'li:nth-child(5) .manageTools_cnt_item_desc_title')

        self.wait_hide(By.CSS_SELECTOR, '.js_dialog_mask')
        self.find(locator).click()
        return Matarial(reuse=True)
